package cn.dada.dadarecipes.community.favorites.pojo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class Favorites {
    @ApiModelProperty(value = "收藏表id")
    Long id;
    @ApiModelProperty(value = "文章id")
    Long articleId;
    @ApiModelProperty(value = "用户id")
    Long userId;
    @ApiModelProperty(value = "收藏时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    LocalDateTime favoriteTime;
}